import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";

createApp(App).use(store).use(router).mount("#app");

axios.defaults.baseURL = "https://localhost:7000/api/";

axios.interceptors.request.use((config) => {
  store.commit("Loading", true);
  return config;
});

axios.interceptors.response.use((config) => {
  store.commit("Loading", false);
  return config;
});
